package com.hdoit.ares.logical.policy.service;

import java.util.List;

import com.hdoit.ares.logical.insu.model.FanhuaAccident;
import com.hdoit.ares.logical.insu.model.FanhuaCar;
import com.hdoit.ares.logical.insu.model.ZhonganAccident;
import com.hdoit.ares.logical.insu.model.ZhonganCar;
import com.hdoit.ares.logical.policy.model.ListPolicy;
import com.hdoit.ares.logical.viewmodel.policy.ListPolicySearch;
import com.tennetcn.common.dao.base.ISuperService;
import com.tennetcn.common.message.PagerModel;
/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年01月18日 00:53:04
 * @comment
 */
public interface IListPolicyService extends ISuperService<ListPolicy>{
	
	public List<ListPolicy> queryAllAccidentPolicy(String customerId);
	
	public List<ListPolicy> queryAllCarPolicy(String customerId);
	
	public ListPolicy queryFanhuaAccident(String customerId, String oid);
	
	public ListPolicy queryZhonganAccident(String customerId, String oid);
	
	public ListPolicy queryFanhuaAccidentDetail(String oid);
	
	public ListPolicy queryZhonganAccidentDetail(String oid);
	
	public ListPolicy queryFanhuaCarDetail(String oid);
	
	public ListPolicy queryZhonganCarDetail(String oid);
	
	
	public List<ListPolicy> queryList(ListPolicySearch search,PagerModel pagerModel);

	public boolean setFanhuaCarPolicy(FanhuaCar fanhuaCar);

	public boolean setFanhuaAccidentPolicy(FanhuaAccident fanhuaAccident);
	
	public boolean setZhonganAccidentPolicy(ZhonganAccident zhonganAccident);
	
	public boolean setZhonganCarPolicy(ZhonganCar zhonganCar);
	
	//查询用户本周出单数
	public int queryCountWeekPolicys(String customerId);
		
	//查询用户本月出单数
	public int queryCountMonthPolicys(String customerId);
	
	//每周是否出单1次
  	public Boolean queryCountWeekPolicy(String customerId);
  	
  	//每月是否出单一次
  	public Boolean queryCountMonthPolicy(String customerId);
  			
}